import { add } from "@/utils/form";

export default {
  data() {
    return {
      // 是否需要打开弹框
      oPenSearch: {
        default: 3,
        hide: false
      },
      // 全局按钮
      overallBtn: [
        {
          label: "新增1",
          mthods: () => add("formProperty", this, this.addFormApi),
          icon: "el-icon-plus"
        },

        {
          label: "下拉菜单",
          icon: "el-icon-plus",
          trigger: "click",
          mthods: () => {
            console.log("测试");
          },
          children: [
            {
              label: "新增",
              mthods: (row, index, item) => {
                console.log("下拉菜单新增", row, index, item);
              },
              icon: "el-icon-plus",
              children: [
                {
                  label: "1",
                  value: "2"
                }
              ]
            }
          ]
        }
      ]

    };
  },
  methods: {

  }
};
